AccessibilityDelegateCompat
(SESL Variant) Helper for accessing AccessibilityDelegate.
Note: On platform versions prior to API 23, delegate methods on views in the android.widget.*
package are called before host methods. This prevents certain properties such as class name from being modified by overriding onInitializeAccessibilityNodeInfo, as any changes will be overwritten by the host class.
Starting in API 23, delegate methods are called after host methods, which all properties to be modified without being overwritten by the host class.
Constructors
Link copied to clipboard
constructor()
Creates a new instance.
Functions
Link copied to clipboard
open fun dispatchPopulateAccessibilityEvent(@NonNull host: View, @NonNull event: AccessibilityEvent): Boolean
Dispatches an AccessibilityEvent to the host View first and then to its children for adding their text content to the event.
Link copied to clipboard
Gets the provider for managing a virtual view hierarchy rooted at this View and reported to AccessibilityServices that explore the window content.
Link copied to clipboard
Initializes an AccessibilityEvent with information about the the host View which is the event source.
Link copied to clipboard
open fun onInitializeAccessibilityNodeInfo(@NonNull host: View, @NonNull info: AccessibilityNodeInfoCompat)
Initializes an AccessibilityNodeInfoCompat with information about the host view.
Link copied to clipboard
Gives a chance to the host View to populate the accessibility event with its text content.
Link copied to clipboard
open fun onRequestSendAccessibilityEvent(@NonNull host: ViewGroup, @NonNull child: View, @NonNull event: AccessibilityEvent): Boolean
Called when a child of the host View has requested sending an AccessibilityEvent and gives an opportunity to the parent (the host) to augment the event.
Link copied to clipboard
Link copied to clipboard
Sends an accessibility event of the given type.
Link copied to clipboard
Sends an accessibility event.
Link copied to clipboard